box gadget: Redo expand flag handling
authorMatthias Clasen <mclasen@redhat.com>
Fri, 29 Apr 2016 01:55:52 +0000 (21:55 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 29 Apr 2016 01:59:34 +0000 (21:59 -0400)
commit214870891761ce4437821e974c34da99d59eed96
treeadcfc01fc3928a60440808e1bd4e23b0c57cb51a
parent8a308dd072ae07b98b33dd68de43975f884cf1bb
box gadget: Redo expand flag handling

We only keep one align flag per child, so it seems odd to
keep separate h/v expand flags. Just keep one expand flag
and interpret it according to orientation. Allow setting
the expand flag for child widgets too, though, so we can
make widget expand without interfering with the recursive
widget expand flag.

Update all callers.

Use the new possibility of expanding child widgets to make
the label of check and radio buttons expand. This fixes
unexpected behavior of these widgets in RTL in some places.

https://bugzilla.gnome.org/show_bug.cgi?id=765742
gtk/gtkboxgadget.c
gtk/gtkboxgadgetprivate.h
gtk/gtkcheckbutton.c
gtk/gtkexpander.c
gtk/gtknotebook.c
gtk/gtkrange.c
gtk/gtkspinbutton.c